package com.zero.lite.dao.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zero
 * @since 2018-05-04
 */
@TableName("lite_goods")
public class Goods extends Model<Goods> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	@TableField("goods_sn")
	private String goodsSn;
	private String name;
	@TableField("category_id")
	private Integer categoryId;
	@TableField("brand_id")
	private Integer brandId;
	private String gallery;
	private String keywords;
	@TableField("goods_brief")
	private String goodsBrief;
	@TableField("is_on_sale")
	private Integer isOnSale;
	@TableField("sort_order")
	private Integer sortOrder;
    /**
     * 专柜价格
     */
	@TableField("counter_price")
	private BigDecimal counterPrice;
	@TableField("is_new")
	private Integer isNew;
    /**
     * 商品主图
     */
	@TableField("primary_pic_url")
	private String primaryPicUrl;
    /**
     * 商品列表图
     */
	@TableField("list_pic_url")
	private String listPicUrl;
	@TableField("is_hot")
	private Integer isHot;
    /**
     * 商品单位
     */
	@TableField("goods_unit")
	private String goodsUnit;
    /**
     * 零售价格
     */
	@TableField("retail_price")
	private BigDecimal retailPrice;
	@TableField("goods_desc")
	private String goodsDesc;
	@TableField("add_time")
	private LocalDateTime addTime;
	private Integer deleted;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getGoodsSn() {
		return goodsSn;
	}

	public void setGoodsSn(String goodsSn) {
		this.goodsSn = goodsSn;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public Integer getBrandId() {
		return brandId;
	}

	public void setBrandId(Integer brandId) {
		this.brandId = brandId;
	}

	public String getGallery() {
		return gallery;
	}

	public void setGallery(String gallery) {
		this.gallery = gallery;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getGoodsBrief() {
		return goodsBrief;
	}

	public void setGoodsBrief(String goodsBrief) {
		this.goodsBrief = goodsBrief;
	}

	public Integer getIsOnSale() {
		return isOnSale;
	}

	public void setIsOnSale(Integer isOnSale) {
		this.isOnSale = isOnSale;
	}

	public Integer getSortOrder() {
		return sortOrder;
	}

	public void setSortOrder(Integer sortOrder) {
		this.sortOrder = sortOrder;
	}

	public BigDecimal getCounterPrice() {
		return counterPrice;
	}

	public void setCounterPrice(BigDecimal counterPrice) {
		this.counterPrice = counterPrice;
	}

	public Integer getIsNew() {
		return isNew;
	}

	public void setIsNew(Integer isNew) {
		this.isNew = isNew;
	}

	public String getPrimaryPicUrl() {
		return primaryPicUrl;
	}

	public void setPrimaryPicUrl(String primaryPicUrl) {
		this.primaryPicUrl = primaryPicUrl;
	}

	public String getListPicUrl() {
		return listPicUrl;
	}

	public void setListPicUrl(String listPicUrl) {
		this.listPicUrl = listPicUrl;
	}

	public Integer getIsHot() {
		return isHot;
	}

	public void setIsHot(Integer isHot) {
		this.isHot = isHot;
	}

	public String getGoodsUnit() {
		return goodsUnit;
	}

	public void setGoodsUnit(String goodsUnit) {
		this.goodsUnit = goodsUnit;
	}

	public BigDecimal getRetailPrice() {
		return retailPrice;
	}

	public void setRetailPrice(BigDecimal retailPrice) {
		this.retailPrice = retailPrice;
	}

	public String getGoodsDesc() {
		return goodsDesc;
	}

	public void setGoodsDesc(String goodsDesc) {
		this.goodsDesc = goodsDesc;
	}

	public LocalDateTime getAddTime() {
		return addTime;
	}

	public void setAddTime(LocalDateTime addTime) {
		this.addTime = addTime;
	}

	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Goods{" +
			"id=" + id +
			", goodsSn=" + goodsSn +
			", name=" + name +
			", categoryId=" + categoryId +
			", brandId=" + brandId +
			", gallery=" + gallery +
			", keywords=" + keywords +
			", goodsBrief=" + goodsBrief +
			", isOnSale=" + isOnSale +
			", sortOrder=" + sortOrder +
			", counterPrice=" + counterPrice +
			", isNew=" + isNew +
			", primaryPicUrl=" + primaryPicUrl +
			", listPicUrl=" + listPicUrl +
			", isHot=" + isHot +
			", goodsUnit=" + goodsUnit +
			", retailPrice=" + retailPrice +
			", goodsDesc=" + goodsDesc +
			", addTime=" + addTime +
			", deleted=" + deleted +
			"}";
	}
}
